﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace IRProject.Model
{
    class ProgressEventArgs : EventArgs
    {
        public string Message { get; set; }
        public int Progress { get; set; }
        public EProgressState State { get; set; }

        public ProgressEventArgs(string mes, int prog, EProgressState state)
        {
            Message = mes;
            this.State = state;
            Progress = prog;
        }

        public ProgressEventArgs(EProgressState state)
            : this("", state)
        { }

        public ProgressEventArgs(string mes, EProgressState state)
            : this(mes, 0, state)
        {
            if (state == EProgressState.Start)
                Progress = 100;
            if (state == EProgressState.End)
                Progress = 0;
        }

        public ProgressEventArgs(int prog)
            : this("", prog, EProgressState.Progressing)
        { }

    }
}
